import React from 'react'
import { Result, Button } from 'antd'

export default (props) => {
  const {history} = props
  const goHome = () => {
    history.goBack()
  }

  return (
    <Result
      status="404"
      title="404"
      subTitle="非常抱歉，页面走丢了。"
      extra={
        <Button type="primary" onClick={goHome}>返回</Button>
      }
    ></Result>
  )
}
